const {Position} = require("./model.js");

const PositionDao = {
	save(positionInfo) {
		return new Position(positionInfo).save();
	},
	update(positionInfo) {
		return Position.update({_id: positionInfo._id}, positionInfo);
	}
}

module.exports = PositionDao;
